package com.liuyucheng.springbean;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

//@SpringBootApplication
public class TestSpringBean {
    public static void main(String[] args) {
        ApplicationContext ac = SpringApplication.run(TestSpringBean.class);
        Person person = ac.getBean("person", Person.class);
        System.out.println(person);
    }
}
